package plagiarism;

import java.io.File;

public class FileManager{
	private File awl;
	private File[] articles;
	public FileManager(String[] articles_name){
		awl = new File("awl.txt"); //dangerous
		
		if(!awl.exists())
		{
			System.out.println("awl.txt does not exists");
			System.exit(1);
		}
		articles = new File[IO.num];
		for(int i=0; i<IO.num; i++)
			articles[i] = new File(articles_name[i]); //pathname[] is the name of article in IO
	}
	//To see the files exists or not
	public boolean compare_article(){
		for(int i=0; i<IO.num; i++)
			if(!articles[i].exists())
				return false;
		return true;
	}
	public File getAwl(){
		return awl;
	}
	public File getArticles(int num){
		return articles[num];
	}
}